package s10.ch12.ex2;

public class MyInstantOf {

	public static void main(String[] args) {
		Car[] cars = CarsFactory.getInstances();
		for (Car car : cars) {
			 {
				System.out.println(car);
				//System.out.println(car.getClass().getSuperclass().getSuperclass().getSuperclass());
			}
		}
	}

}
